PreviousNextTracker indexSee it online !

(288/308) 1880 - LatextTools is creating gui components in a background thread

I have ContextMenu plugin set to show me an extra menu just before the Help menu depending on what mode I am editing.
This is broken in Substance L&F.
Also, I can't see a Help menu in the main menubar.
Lots of exceptions are thrown in the activity log.


at java.awt.Container.remove(Container.java:1261)
at contextmenu.ContextMenuPlugin.addToMenubar(ContextMenuPlugin.java:188)
at contextmenu.ContextMenuPlugin.addToMenubar(ContextMenuPlugin.java:174)
at contextmenu.ContextMenuPlugin.updateAllViews(ContextMenuPlugin.java:280)
at contextmenu.ContextMenuPlugin.handleMessage(ContextMenuPlugin.java:145)
at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246)

Submitted ezust - 2017-03-20 14:18:48.218000 Assigned
Priority 5 Labels
Status open Group
Resolution None

Comments

2017-04-03 16:23:31.274000
daleanson

Alan, would you add a little detail, please? The Help menu you mention is the one in the main jEdit menu bar? You can't see it at all? What theme are you using in Substance? I assume you're using the latest Look and Feel plugin (1.9.0) and latest Substance plugin (7.3.1)?

I don't see the error you're reporting at all, the ContextMenu menu shows up in the main menu bar just to the left of the Help menu when I switch to a buffer with the right mode, and the Help menu is visible at all times. I'm using Substance with the Graphite theme.

2017-04-03 17:10:02.982000
ezust

I tried switching to Graphite and didn't see the issue until after jEdit restart.
Issue shows up immediately however, with BusinessBlueSteel.
And to other questions: yes.
Activity Log attached.

activity.menubar.log.gz (49.6Kio)

2017-04-03 17:34:26.469000
daleanson

I think this is a bug in LaTeXTools. I didn't have that plugin installed, now I do and now I see the error. The exception is telling the right story, LatextTools is creating gui components in a background thread rather than on the event dispatch thread. If I dock the LatexTool dockables, I do see the ContextMenu appear in the main jEdit menu bar and I still see the Help menu. I also see all the errors, though.

2017-04-03 18:18:07.137000
daleanson

BTW, that BusinessBlueSteel is a very nice looking theme. I'm going to stay with it for a while, I think.

2017-06-20 21:57:09.151000
daleanson

- **summary**: ContextMenuPlugin + Substance L&F = bad menubar --> LatextTools is creating gui components in a background thread
- **Group**: -->

2017-06-20 21:57:09.497000
daleanson

Renamed this issue since the bug is actually located in LatexTools rather than ContextMenu or Substance.